<?php


namespace app\admin\model;


use think\Model;
use think\model\concern\SoftDelete;

class WanderRecord extends Model
{
    use SoftDelete;
    protected $name = 'wander_record';
    const BTN_ONT = "send"; //发起
    const BTN_TWO = "ok"; //流程中
    const BTN_THREE = "Back"; //返回
    const BTN_FOUR = "End"; //完成


    const STATUS_ZERO = 0; //保存中
    const STATUS_ONE = 1; //流程中
    const STATUS_TWO = 2; //完成
    const STATUS_BACK = -1; //退回


    public function wander()
    {
        return $this->belongsTo(Wander::class, 'wander_id');

    }
}